import {getSessionStorage, setSessionStorage} from "@/utils/storage.ts";

const tokenKey = 'Access-Token'
const expireTimeKey = 'ExpiresInKey'
const infoKey = 'Info'
export const GET_TOKEN = ()=>{
    return getSessionStorage(tokenKey)
}
export const SET_TOKEN = (token)=> {
    return setSessionStorage(tokenKey, token)
}
export const SET_EXPIRE_TIME = (time)=>{
    return setSessionStorage(expireTimeKey,time)
}
//储存用户信息
export const SET_INFO = (params)=>{
    return setSessionStorage(infoKey,params)
}
